aboutsummaryrefslogtreecommitdiff
path: root/pages/post/[id].tsx
diff options
context:
space:
mode:
Diffstat (limited to 'pages/post/[id].tsx')
-rw-r--r--pages/post/[id].tsx2
1 files changed, 2 insertions, 0 deletions
diff --git a/pages/post/[id].tsx b/pages/post/[id].tsx
index c0d4e9d..eed1429 100644
--- a/pages/post/[id].tsx
+++ b/pages/post/[id].tsx
@@ -18,6 +18,7 @@ export interface ArticleMeta {
tags?: Array<string>;
date?: string;
chapters?: Array<chapter>;
+ cover?: string;
id?: string;
}
@@ -78,6 +79,7 @@ var parseTag = {
'title': (val: string) => val,
'subtitle': (val: string) => val,
'author': (val: string) => val,
+ 'cover': (val: string) => val,
'tags': (val: string) => val.split(',').map(i => i.trim()),
'date': (val: string) => new Date(val).toDateString(),
};